﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="View.aspx.cs" Inherits="Wicresoft.RDW.Mail.View" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="main_title">
        <h2>
            <%=Resources.ManageResource.title_mailTemplate%></h2>
    </div>
    <div class="HistoryApplicationContent">
        <asp:GridView ID="GridView1" runat="server" Width="100%" AutoGenerateColumns="false"
            HeaderStyle-CssClass="dcTableHeader" RowStyle-CssClass="dcTableAlternatingItem"
            AlternatingRowStyle-CssClass="dcTableItem">
            <Columns>
                <asp:TemplateField HeaderText="<%$ Resources:ManageResource,mgr_lblTemplateName %>">
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:ManageResource,mgr_lblSubject %>">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Subject") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:ManageResource,mgr_lblAction %>" HeaderStyle-Width="100px">
                    <ItemTemplate>
                        <a href='Update.aspx?Id=<%# Eval("Id") %>' target="_self" class="CommandButton">
                            <%=Resources.ManageResource.mgr_btnEdit %></a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <table width="100%">
                    <tr class="dcTableHeader">
                        <th>
                            <%= Resources.ManageResource.mgr_lblTemplateName %>
                        </th>
                        <th>
                            <%= Resources.ManageResource.mgr_lblSubject %>
                        </th>
                        <th>
                            <%= Resources.ManageResource.mgr_lblAction%>
                        </th>
                    </tr>
                </table>
            </EmptyDataTemplate>
        </asp:GridView>
    </div>
</asp:Content>
